<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:url value="/saveAssociation" var="action"/>
<head>
	<script src="<c:url value="/static/js/jquery-1.4.4.min.js"/>"></script>
	<script src="<c:url value="/Constants"/>"></script>
	
</head>

<script type="text/javascript">

<!--
function changeGame(){
	getNonAssociatedFileNames($('#gamesCombo').val(),'fileNamesCombo');
}
//-->
</script>
<form:form commandName="games" action="${action}">
	<form:select path="" id="gamesCombo" onchange="changeGame();">
		<form:option value="-1">Select Game</form:option>
		<form:options items="${games}" itemLabel="name" itemValue="id"/>
	</form:select>
	<select id="fileNamesCombo" name="selectedFileName">
		<option value="-1" >Select File Name</option>
	</select>
	<input type="submit" value="Save Changes" />
</form:form>